import java.util.ArrayList;

public class testarray {
	
	public static void main(String[] args) {
		
	ArrayList<String> array = new ArrayList<String>();
	
	array.add("http://kftest12.sqa.vm4.tbsite.net/1/1.bmp");
	array.add("http://kftest12.sqa.vm4.tbsite.net/1/2.bmp");
	array.add("http://kftest12.sqa.vm4.tbsite.net/1/3.bmp");
	int start;
	int end;
	String tmpHost = null;
	String vip = "10.32.22.156";
	String tmpUrl = "";
	
	for(int n=0; n < array.size(); n++) {
		tmpUrl = array.get(n);
		start = tmpUrl.indexOf("//");
		end = tmpUrl.indexOf("/", start+2);
		tmpHost = tmpUrl.substring(start + 2, end);
		System.out.println(tmpUrl.replace(tmpHost, vip));
		array.set(n, tmpUrl.replace(tmpHost, vip));
		}
	System.out.println(array.toString());
	}
	
}
